The JITprofile sample allows you to explore the capabilities of the JIT Profiling APIs in Intel® VTune™ Amplifier.

The JIT (Just-In-Time) Profiling API provides functionality to report information about just-in-time generated code that can be used by performance tools. You need to insert JIT Profiling API calls in the code generator to report information before JIT-compiled code goes to execution. This information is collected at runtime and used by tools like the VTune Amplifier to display performance metrics associated with JIT-compiled code.

System Requirements

Build Instructions

  1. Open the Visual Studio* IDE and choose File > Open > Project/Solution from the menu.

  2. In the Open Project dialog box, choose the jitprofiling.sln file.

  3. Right-click the project in the Solution Explorer and choose Properties to display the Property Pages dialog box.

  4. Choose Release or Active (Release) in the Configuration drop-down list.

  5. Click OK to save the property settings and close the dialog box.

  6. Press F7 or choose Build > Build Solution from the menu to build the project.

If you encounter the Error C1083 Cannot open include file: 'jitprofiling.h': No such file or directory error, use the steps below to reference the header file:

  1. Set the path for the %VTUNE_AMPLIFIER_[version]_DIR% environment variable on your system.

  2. Right-click the project in the Solution Explorer and choose Properties to display the Property Pages dialog box.

  3. Navigate to Configuration Properties > C/C++ > General and add the environment variable to the Additional Include Directories field.

  4. Navigate to Configuration Properties > Linker > General and add the environment variable to the Additional Library Directories field.

  5. Click OK to save the property settings and close the dialog box.

  6. Press F7 or choose Build > Build Solution from the menu to rebuild the project.

Note:

If you encounter the Unable to generate SAFESEH image issue, set the /SAFESEH:NO option in the linker settings. Depending on the version of Intel VTune Amplifier you have installed, you may have to adapt the include directories path. For more information, see https://msdn.microsoft.com/en-us/library/9a89h429.aspx.

Legal Information

Intel, the Intel logo, VTune and Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries.

*Other names and brands may be claimed as the property of others.

Microsoft, Windows, and the Windows logo are trademarks, or registered trademarks of Microsoft Corporation in the United States and/or other countries.

OpenCL and the OpenCL logo are trademarks of Apple Inc. used by permission from Khronos.

© 2017 Intel Corporation